package com.kong;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * <dl>
 * <dd>Description: 项目启动类</dd>
 * <dd>Company: 大诚若谷信息技术有限公司</dd>
 * <dd>@date：2017/6/12 17:15</dd>
 * <dd>@author：Kong</dd>
 * </dl>
 */
@SpringBootApplication
@ServletComponentScan// 开启@WebServlet、@WebFitler等注解
@EnableConfigurationProperties//自动扫描配置文件
@MapperScan(basePackages = "com.kong.repository") // 扫描dao接口
//让服务使用eureka服务器
@EnableEurekaClient
public class BootStrapApplication {

    public static void main(String[]args){
        SpringApplication.run(BootStrapApplication.class);
    }
}
